import {createStore,combineReducers,applyMiddleware} from "redux"
import logger from "redux-logger"
import thunk from "redux-thunk"
import {composeWithDevTools} from "redux-devtools-extension"
//引入
import login from "./modules/login"
import register from "./modules/register"
import home from "./modules/home"
import list from "./modules/list"
import detail from "./modules/detail"
import mine from "./modules/mine"
import shop from "./modules/shop"
let rootReducer=combineReducers({
    //模块
    login,
    register,
    home,
    list,
    detail,
    mine,
    shop
})

let store=createStore(rootReducer,composeWithDevTools(applyMiddleware(thunk)))

export default store